﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UCQLTheLoai.ascx.cs" Inherits="UC_Admin_UCQLTheLoai" %>
<div>
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowCommand="GridView1_RowCommand" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" ShowFooter="True" Width="612px">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:TemplateField HeaderText="Mã loại">
                <EditItemTemplate>
                    <asp:Label ID="lbleMaLoai" runat="server" Text='<%# Eval("maloai") %>'></asp:Label>
                </EditItemTemplate>
                <FooterTemplate>
                    <asp:Label ID="Label1" runat="server" Text="..."></asp:Label>
                </FooterTemplate>
                <ItemTemplate>
                    <asp:Label ID="lblMaLoai" runat="server" Text='<%# Eval("maloai") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Tên Thể Loại">
                <EditItemTemplate>
                    <asp:TextBox ID="txteTenLoai" runat="server" Height="22px" Text='<%# Eval("tenloai") %>' Width="149px"></asp:TextBox>
                </EditItemTemplate>
                <FooterTemplate>
                    <asp:TextBox ID="txtfTenLoai" runat="server" Width="215px"></asp:TextBox>
                </FooterTemplate>
                <ItemTemplate>
                    <asp:Label ID="lblten" runat="server" Text='<%# Eval("tenloai") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Sửa Loại">
                <EditItemTemplate>
                    <asp:ImageButton ID="imOK" runat="server" CommandName="Update" ImageUrl="~/Images/User/Save.png" ToolTip="OK" />
                    <asp:ImageButton ID="imTroLai" runat="server" CommandName="Cancel" Height="16px" ImageUrl="~/Images/User/back.png" ToolTip="Cancel" Width="16px" />
                </EditItemTemplate>
                <FooterTemplate>
                    <asp:ImageButton ID="imThem" runat="server" CommandName="themcuoi" Height="16px" ImageUrl="~/Images/User/Add.png" Width="16px" />
                </FooterTemplate>
                <ItemTemplate>
                    <asp:ImageButton ID="ImageButton1" runat="server" CommandName="Edit" Height="16px" ImageUrl="~/Images/User/edit.png" Width="18px" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Xoá Loại">
                <EditItemTemplate>
                    <asp:ImageButton ID="ImageButton3" runat="server" CommandArgument='<%# Bind("maloai") %>' CommandName="xoa" Height="16px" ImageUrl="~/Images/User/Delete.png" Width="16px" />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:ImageButton ID="ImageButton2" runat="server" CommandArgument='<%# Bind("maloai") %>' CommandName="xoa" Height="16px" ImageUrl="~/Images/User/Delete.png" Width="16px" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#7C6F57" />
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F8FAFA" />
        <SortedAscendingHeaderStyle BackColor="#246B61" />
        <SortedDescendingCellStyle BackColor="#D4DFE1" />
        <SortedDescendingHeaderStyle BackColor="#15524A" />
    </asp:GridView>
    <asp:Label ID="lblThongBao" runat="server" style="color: #FF0066"></asp:Label>
    <br />
</div>

